#include "StdAfx.h"
#include "EditorUI.h"
#include <qapplication.h>

EditorUI::EditorUI(void)
{
}


EditorUI::~EditorUI(void)
{
}

void EditorUI::Create(QMainWindow *wnd)
{
	// MAIN WINDOW
	wnd->resize(1024, 768);

	// layout
	QVBoxLayout *lt = new QVBoxLayout(wnd);

	// MENUS ===========================================================================
	// main menu
	this->menuMain = new QMenuBar(wnd);
	wnd->setMenuBar(menuMain);

	// File menu
	menuFile = new QMenu(menuMain);
	menuMain->addAction(menuFile->menuAction());

	RetranslateUI(wnd);
	// =================================================================================


	// OPENGL
	glFrame = new QGLWindow(wnd);
	glFrame->resize(1024, 768);
	
	wnd->setCentralWidget(glFrame);
}

//#define RETRANSLATE(str) 

void EditorUI::RetranslateUI(QMainWindow *wnd)
{
	//menuFile->setTitle(::QApplication::translate("QTEditorClass", "File", 0, ::QApplication::UnicodeUTF8));
	menuFile->setTitle(tr("File"));
}